package com.example.Equipment.service.impl;

import com.example.Equipment.domain.Equipment;
import com.example.Equipment.mapper.EquipmentMapper;
import com.example.Equipment.service.EquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 服务层
 */
@Service
public class EquipmentServiceImpl implements EquipmentService {

    @Autowired
    private EquipmentMapper equipmentMapper;

    /**
     * 查询用户
     * @param equipment
     * @return
     */
    @Override
    public List<Equipment> selectEquipment(Equipment equipment) {
        return equipmentMapper.selectEquipment(equipment);
    }

    /**
     * 新增用户
     * @param equipment
     */
    @Override
    public void insertEquipment(Equipment equipment) {
        equipmentMapper.insertEquipment(equipment);
    }

    /**
     * 修改用户
     * @param equipment
     */
    @Override
    public void updateEquipmentById(Equipment equipment) {
        equipmentMapper.updateEquipmentById(equipment);
    }

    /**
     * 删除用户
     * @param Id
     */
    @Override
    public void deleteEquipmentById(String Id) {
        equipmentMapper.deleteEquipmentById(Id);
    }


}

